package org.liuwei.concurent03.akka.demo2;
import akka.actor.UntypedActor;
import com.alibaba.fastjson.JSONObject;

public class Greeter extends UntypedActor {

  @Override
  public void onReceive(Object msg) throws InterruptedException {

    try {
      System.out.println("Greeter收到的数据为：" + JSONObject.toJSONString(msg));
      getSender().tell("Greeter工作完成。", getSelf());//给发送至发送信息.
    }catch (Exception e){
      e.printStackTrace();
    }

  }

}